﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="BPList.aspx.cs" Inherits="MedicalCare.Admin.BPList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
      <asp:CheckBox ID="cbAutoRefresh" runat="server" Checked="false" Text="自动刷新" />
      &nbsp;
      &nbsp;
      <asp:Button ID="btnRefresh" runat="server" Text="手动刷新"   onclick="btnRefresh_Click" />
      <br />
      <br />
      <asp:Label  ID="lbStandValue" runat="server" Text="正常的血压范围:70-140mmHg"></asp:Label>&nbsp;&nbsp;
      <asp:Button ID="btnlowBP" runat="server" Text="低血压数据" 
          onclick="btnlowBP_Click"    />&nbsp;&nbsp;
      <asp:Button ID="btnHighBP" runat="server" Text="高血压数据" 
          onclick="btnHighBP_Click"    />
    <asp:ScriptManager ID="ScriptManager1" EnablePartialRendering="true" runat="server">
    </asp:ScriptManager>

     <asp:UpdatePanel ID="UpdatePanel1" runat="server">
     <ContentTemplate>
      <asp:Timer ID="Timer1" runat="server" Interval="500" ontick="Timer1_Tick" />

      <asp:HiddenField ID="hideOrderby" runat="server" />
      <br />
      <asp:DataList ID="bpList" runat="server" CellPadding="2" 
             onitemdatabound="bpList_ItemDataBound">
                    <%--<AlternatingItemStyle BackColor="White" ForeColor="#284775" />--%>
                    <FooterStyle BackColor="#5D7B9D" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                    <%--<ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />--%>
                    <HeaderTemplate>
                        <table cellpadding="2" cellspacing="0" border="0">
                            <tr>
                               <%-- <td style="width: 35px; text-align: center">
                                  
                                </td>--%>
                                <td style="width: 150px; text-align: center">
                                    Family
                                </td>
                                <td style="width: 140px; text-align: center">
                                    SBP
                                </td>
                                <td style="width: 140px; text-align: center">
                                    DBP
                                </td>
                                <td style="width: 140px; text-align: center">
                                    MBP
                                </td>
                                <td style="width: 150px; text-align: center">
                                    Pulse
                                </td>
                                <td style="width: 200px; text-align: center">
                                    ReceiveTime
                                </td>
                            </tr>
                        </table>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <table cellpadding="2" cellspacing="0" border="0">
                            <tr onmouseover="this.style.background ='#FFDEAD';"  onclick="changeRadioSelected(this)"
                            onmouseout="this.style.background ='#ffffff'">
                               <%-- <td style="width: 35px">
                                    <image src='<%# DataBinder.Eval(Container.DataItem, "Id") %>' width="35px"></image>
                                </td>--%>
                                <td style="width: 150px; text-align: center">
                                    <%# Formatlength_10(DataBinder.Eval(Container.DataItem, "FamilyName"))%>
                                </td>
                                <td style="width: 140px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "SBP")%>
                                </td>
                                <td style="width: 140px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "DBP")%>
                                </td>
                                  <td style="width: 140px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "Pulse")%>
                                </td>
                                <td style="width: 150px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "MBP")%>
                                </td>
                                <td style="width: 200px; text-align: center">
                                    <%# DataBinder.Eval(Container.DataItem, "ReceiveTime")%>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                    <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True"  />
                </asp:DataList>

                <div >
        <webdiyer:AspNetPager ID="pager1" runat="server" HorizontalAlign="left" 
                    CssClass="paginator"   CurrentPageButtonClass="cpb"
                     PrevPageText="上一页" NextPageText="下一页" NumericButtonTextFormatString=" {0} "
                    ShowBoxThreshold="2" PageSize="5" InputBoxClass="text2" TextAfterInputBox=""
                    PagingButtonStyle="" OnPageChanging="msgPager_PageChanging" 
                    ShowPageIndexBox="Always" SubmitButtonText="确定"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="跳转至" 
                    CurrentPageButtonPosition="Center" ShowFirstLast="False" />
      </div>
     </ContentTemplate>
    </asp:UpdatePanel>


    

</asp:Content>
